#ifndef ROUTETABLEWIDGET_H
#define ROUTETABLEWIDGET_H

#include <QTableWidget>

class RouteTableWidget : public QTableWidget
{
    Q_OBJECT
public:
    RouteTableWidget(QWidget *parent = nullptr);

protected:
    void dropEvent(QDropEvent *event) override;

private:
    QList<int> getSelectedRowsFast();
    bool droppingOnItself(QDropEvent *event, QModelIndex &index);
    bool dropOn(QDropEvent *event, int &row, int &col, QModelIndex &index);
    int position(QPoint pos, QRect rect, QModelIndex &index);
};

#endif // ROUTETABLEWIDGET_H
